package com.test.design.pattern.mediator;

/**
 * @ClasName Person
 * @Descripution TODO 抽象同事类 定义同事类的接口，保存中介者对象，提供同事对象交互的抽象方法，实现所有相互影响的同事类的公共功能。
 * @Author USER
 * @Date 2022/2/24 20:10
 * @Version V1.0
 */
public class Person {

    protected String name;
    protected Mediator mediator;

    public Person(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

}
